"""
Configuration
"""
import os

from google.appengine.api import lib_config

class ConfigDefaults(object):
    """
    Configurable constants.

    To override dsbq configuration values, define values like this
    in your appengine_config.py file (in the root of your app)
    before importing the dsbq module:

        dsbq_API_PROJECT_ID      = '[your-project-id]' # (required)
        dsbq_BUCKET_NAME         = '[your-backup-bucket-name]' # (required)
        dsbq_DEFERRED_QUEUE      = 'default'
        dsbq_DEFERRED_URL_PREFIX = '/_ah/queue/deferred'
        dsbq_DATASET             = 'my-dataset'

    """
    API_PROJECT_ID      = None # required
    BUCKET_NAME         = None # required
    DEFERRED_QUEUE      = 'default'
    DEFERRED_URL_PREFIX = '/_ah/queue/deferred'
    DATASET             = os.environ.get('APPLICATION_ID', 's~localhost').lower().strip('s~')

config = lib_config.register('dsbq', ConfigDefaults.__dict__)
